<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <table border='1'>
        <tr>
            <% heads.forEach(function(column){ %>
            <th><%= column %></th>
            <% }); %>
        </tr>
        <% users.forEach(function(user, idx){ %>
            <tr>
                <td><%= idx+1 %></td>
                <td><%= user.name %></td>
                <td><%= user.sex==='0'?'女':'男' %></td>
            </tr>
        <% }); %>            
    </table>
    <h2>共<%= users.length %>条数据</h2>
  </body>
</html>